import { Component } from "react";
import './Tablelist.scss'
class Tablelist extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }
  render() {
    let { users } = this.props;
    let arr = users.map((user, i) => {
      return (
        <div key={user.id} className="text-center">
          <div>{user.id}</div>
          <div>{user.title}</div>
          <div>{user.name}</div>
          <div>{user.sex}</div>
        </div>
      );
    });
    return (
      <div className="table">
        我是Tablelist
        <div> {arr}</div>
      </div>
    );
  }
}

export default Tablelist;
